import request from '../utils/request'

export function getSwiperImg() {
  return request({
    url: '/home/swiper',
    method: 'get'
  })
}

export function getTenancyGroups() {
  return request({
    url: '/home/tenancy-groups',
    method: 'get'
  })
}

export function getNews() {
  return request({
    url: '/home/news',
    method: 'get'
  })
}

export function getCityList() {
  return request({
    url: '/city_list',
    method: 'get'
  })
}

export function getCity(cityName) {
  return request({
    url: '/city',
    method: 'get',
    params: {cityName}
  })
}

export function getHotCity() {
  return request({
    url: '/hot_city',
    method: 'get'
  })
}
